package test3_25.demo01;public class Homework13_7_Location {

    public static void main(String[] args) {
        String text = "那车水马龙的人世间,那样地来 那样地去,太匆忙";

        int index = text.lastIndexOf("那");

        if(index != -1){
            System.out.println("最后一次出现的位置为："+index);
        }else {
            System.out.println("没这个字");
        }
    }

}
